package tsing.javase.annotation;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author Tsing/吴清平
 * @Date 2022/10/9 13:40
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Student {
    private int age;
    private String name;
    @Length(min = 11 ,max =11 ,message = "传入的电话号码长度有误，必须为11位")
    private String mobile;

}
